<? $i=0; ?>
<tr>
	<td width="130"><?= $title; ?>:</td>
	<td>
		<? foreach($options as $option): /*echo current($option)."!=".$selected; */?>
			<? if($selected!==false && $selected == current($option)): ?>
				<input type="radio" id='<?= $name."_".$i; ?>' checked name="<?= $name; ?>" value="<?= current($option); ?>"/>
			<? else: ?>
				<input type="radio" id='<?= $name."_".$i; ?>' name="<?= $name; ?>" value="<?= current($option); ?>"/>
			<? endif; ?>
			<label for="<?= $name."_".$i++; ?>"><?= next($option); ?></label>
		<? endforeach; ?>
	</td>
</tr>